using System;
using Subsync.CLI;
using Subsync.Core.Sync;

namespace Subsync
{
	/// <summary>
	/// Author: Steven Goh Jian Wen
	/// </summary>
	class MainClass
	{
		public static bool debug = true;
		
		public static void Main (string[] args)
		{
			Console.Title = "Subsync";
			
            //Check for corrupted config file.
            if (!new Config().ValidConfigCheck()) {
                Console.WriteLine("Error: XML file is corrupted.");
                return;
            }
            //dispatch to views.
            new Views(args); 
		}
	}
}